<script setup>
// 获取 route 路由
import {useRoute} from "vue-router";
import {onMounted} from "vue";

const route = useRoute();

onMounted(() => {
  console.log('路由名称：', route.name)
  console.log('路由路径：', route.path)
  console.log('元数据：', route.meta)
  console.log('传递参数：', route.params)
  console.log('传递参数：', route.query)
  console.log('完整路径：', route.fullPath)
  console.log('路由匹配：', route.matched)
  console.log('hash值：', route.hash)
  console.log('重定向：', route.redirectedFrom)
});
</script>

<template>
  <div>Page A2.</div>
</template>

<style scoped>

</style>